<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>声破天 - 网页播放器</title>
    <link rel="stylesheet" href="assets/css/main.css">
    <link rel="stylesheet" href="assets/css/player-bar.css">
    <!-- 移除 player.css 的引用 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>

<body>
    <div class="main-container">
        <!-- 侧边导航栏 -->
        <aside class="sidebar">
            <div class="logo">
                <a href="landing.html">
                    <svg viewBox="0 0 200 50" xmlns="http://www.w3.org/2000/svg">
                        <circle cx="25" cy="25" r="20" fill="#1DB954" />
                        <path d="M18 27.5C18 27.5 22 23.5 25 23.5C28 23.5 32 27.5 32 27.5" stroke="black"
                            stroke-width="2" fill="none" />
                        <path d="M16 21.5C16 21.5 22 15.5 25 15.5C28 15.5 34 21.5 34 21.5" stroke="black"
                            stroke-width="2" fill="none" />
                        <path d="M14 15.5C14 15.5 21 7.5 25 7.5C29 7.5 36 15.5 36 15.5" stroke="black" stroke-width="2"
                            fill="none" />
                        <text x="50" y="32" font-family="Arial, sans-serif" font-size="24" font-weight="bold"
                            fill="white">声破天</text>
                    </svg>
                </a>
            </div>
            <nav class="main-nav">
                <ul>
                    <li class="nav-item active">
                        <a href="index.html"><i class="fas fa-home"></i> <span data-i18n="nav_home">首页</span></a>
                    </li>
                    <li class="nav-item">
                        <a href="search.html"><i class="fas fa-search"></i> <span data-i18n="nav_search">搜索</span></a>
                    </li>
                    <li class="nav-item">
                        <a href="explore.html"><i class="fas fa-compass"></i> <span
                                data-i18n="nav_explore">探索</span></a>
                    </li>
                    <li class="nav-item">
                        <a href="library.html"><i class="fas fa-book"></i> <span data-i18n="nav_library">音乐库</span></a>
                    </li>
                </ul>
            </nav>

            <div class="library-nav">
                <div class="library-header">
                    <h2><i class="fas fa-plus-square"></i> <span data-i18n="create_playlist">创建播放列表</span></h2>
                </div>
                <div class="library-items">
                    <div class="library-item">
                        <div class="liked-songs">
                            <div class="liked-gradient">
                                <i class="fas fa-heart"></i>
                            </div>
                            <h3 data-i18n="liked_songs">我喜欢的歌曲</h3>
                            <p><span data-i18n="playlist">播放列表</span> • 32 <span data-i18n="songs">首歌曲</span></p>
                        </div>
                    </div>
                    <div class="playlists">
                        <div class="playlist-item">
                            <a href="#" id="following-link" style="text-decoration: none; color: inherit;">
                                <h3 data-i18n="playlist_1">我的关注</h3>
                                <p data-i18n="playlist_by_user">播放列表 • 用户</p>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </aside>

        <!-- 主内容区 -->
        <main class="content">
            <header class="top-bar">
                <div class="navigation-buttons">
                    <button class="nav-btn"><i class="fas fa-chevron-left"></i></button>
                    <button class="nav-btn"><i class="fas fa-chevron-right"></i></button>
                </div>
                <div class="user-menu">
                    <div class="language-selector">
                        <div class="language-options">
                            <button class="language-btn" data-lang="zh-CN">简体中文</button>
                            <button class="language-btn" data-lang="en">English</button>
                            <button class="language-btn" data-lang="zh-TW">繁體中文</button>
                        </div>
                    </div>
                    <div class="auth-buttons">
                        <a href="login.html" class="login-btn"><i class="fas fa-sign-in-alt"></i> <span
                                data-i18n="login">登录</span></a>
                        <a href="register.html" class="register-btn"><i class="fas fa-user-plus"></i> <span
                                data-i18n="register">注册</span></a>
                    </div>
                </div>
            </header>

            <!-- 主页内容容器 -->
            <div class="content-container home-content">
                <section class="greeting-section">
                    <h1>晚上好</h1>
                </section>

                <section class="recently-played">
                    <h2 data-i18n="recently_played">最近播放</h2>
                    <div class="card-grid">
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover1.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="liked_songs">我喜欢的歌曲</h3>
                            <p data-i18n="playlist">播放列表</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover2.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="playlist_jay">周杰伦精选</h3>
                            <p data-i18n="playlist">播放列表</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover3.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="playlist_2024">2024 热门歌曲</h3>
                            <p data-i18n="playlist">播放列表</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover4.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="playlist_popular">流行热歌榜</h3>
                            <p data-i18n="playlist">播放列表</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover5.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="playlist_new">最新上线</h3>
                            <p data-i18n="playlist">播放列表</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover6.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="playlist_rock">摇滚经典</h3>
                            <p data-i18n="playlist">播放列表</p>
                        </div>
                    </div>
                </section>

                <section class="made-for-you">
                    <h2 data-i18n="made_for_you">为你精选</h2>
                    <div class="card-grid">
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover7.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="daily_recommendation">每日推荐</h3>
                            <p data-i18n="based_on_taste">根据你的口味量身打造</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover8.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="your_songs_recap">你的2024年歌曲回顾</h3>
                            <p data-i18n="most_played_songs">你今年最常听的歌曲</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover9.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="new_releases">流行新声</h3>
                            <p data-i18n="latest_pop_recommendation">最新流行音乐推荐</p>
                        </div>
                        <div class="card">
                            <div class="card-img">
                                <img src="assets/images/covers/cover10.jpg" alt="播放列表封面">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="chinese_golden_hits">华语金曲</h3>
                            <p data-i18n="classic_chinese_selection">经典华语歌曲精选</p>
                        </div>
                    </div>
                </section>

                <section class="popular-artists">
                    <h2 data-i18n="popular_artists">热门艺术家</h2>
                    <div class="card-grid">
                        <div class="artist-card">
                            <div class="artist-img">
                                <img src="assets/images/artists/artist1.jpg" alt="艺术家照片">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="artist_jay">周杰伦</h3>
                            <p data-i18n="artist">艺术家</p>
                        </div>
                        <div class="artist-card">
                            <div class="artist-img">
                                <img src="assets/images/artists/artist2.jpg" alt="艺术家照片">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="artist_taylor">Taylor Swift</h3>
                            <p data-i18n="artist">艺术家</p>
                        </div>
                        <div class="artist-card">
                            <div class="artist-img">
                                <img src="assets/images/artists/artist3.jpg" alt="艺术家照片">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="artist_eason">陈奕迅</h3>
                            <p data-i18n="artist">艺术家</p>
                        </div>
                        <div class="artist-card">
                            <div class="artist-img">
                                <img src="assets/images/artists/artist4.jpg" alt="艺术家照片">
                                <button class="play-button"><i class="fas fa-play"></i></button>
                            </div>
                            <h3 data-i18n="artist_ed">邓紫棋</h3>
                            <p data-i18n="artist">艺术家</p>
                        </div>
                    </div>
                </section>
            </div>

            <!-- 底部播放器 -->
            <footer class="player-bar">
                <div class="now-playing">
                    <div class="track-info">
                        <div class="track-image" title="点击查看歌词">
                            <img src="assets/images/covers/cover2.jpg" alt="当前播放歌曲">
                        </div>
                        <div class="track-details">
                            <h4 class="track-name">当前</h4>
                            <p class="artist-name">晴天 - 周杰伦</p>
                        </div>
                    </div>
                    <div class="track-actions">
                        <button class="action-btn"><i class="far fa-heart"></i></button>
                        <button class="action-btn"><i class="fas fa-external-link-alt"></i></button>
                    </div>
                </div>

                <div class="player-controls">
                    <div class="control-buttons">
                        <button class="control-btn"><i class="fas fa-random"></i></button>
                        <button class="control-btn"><i class="fas fa-step-backward"></i></button>
                        <button class="control-btn play-btn"><i class="fas fa-play"></i></button>
                        <button class="control-btn"><i class="fas fa-step-forward"></i></button>
                        <button class="control-btn"><i class="fas fa-redo"></i></button>
                    </div>
                    <div class="playback-bar">
                        <span class="current-time">0:00</span>
                        <div class="progress-bar">
                            <div class="progress"></div>
                            <div class="progress-handle"></div>
                        </div>
                        <span class="total-time">4:29</span>
                    </div>
                </div>

                <div class="player-options">
                    <button class="option-btn"><i class="fas fa-list"></i></button>
                    <button class="option-btn"><i class="fas fa-desktop"></i></button>
                    <div class="volume-control">
                        <button class="option-btn"><i class="fas fa-volume-up"></i></button>
                        <div class="volume-bar">
                            <div class="volume-level" style="width: 70%"></div>
                            <div class="volume-handle" style="left: 70%"></div>
                        </div>
                    </div>
                </div>
            </footer>

            <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>

            <script src="assets/js/app.js"></script>
            <script src="assets/js/i18n.js"></script>
            <script src="assets/js/player.js"></script>
            <script src="assets/js/navigation.js"></script>
            <script src="assets/js/sidebar-utils.js"></script>
            <script>
                document.addEventListener('DOMContentLoaded', function () {
                    // 初始化专辑封面点击事件
                    initPlayerCoverClick();
                });
            </script>
</body>

</html>